package com.mano233.server.mapper;

import com.mano233.server.config.security.UserCustomDetails;
import com.mano233.server.po.Form;
import com.mano233.server.po.FormUserEditor;
import com.mano233.server.po.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapperCustom extends UserMapper {
    UserCustomDetails getUserByName(@Param("userName") String userName);

    UserCustomDetails getUserById(@Param("uid") int uid);

    List<FormUserEditor> getUserFormList(@Param("userId") int userId);

    List<User> searchUser(@Param("userName") String userName);
}
